Hệ thống bổ nhiệm bác sĩ trong PHP bằng mã nguồn

1 <?php if(!isset($_SESSION)){
2     session_start();
3     }
4 ?>
5
6 <?php include(
'header.php'); ?>
7
8
9 <!--
this is for donor registraton -->
10     <div
class="dashboard" style="background-color:#fff;">
11         <h3
class="text-center" style="background-color:#272327;color: #fff;padding: 5px;">Who have donated Blood</h3>
12         
13         
14     
15         
16             <div
class="all_user" style="margin-top:0px; margin-left: 40px;">
17                 <?php
18                     include(
'../config.php');
19
20                     $sql =
" SELECT * FROM donation";
21                     $result = mysqli_query($conn,$sql);
22                     $count = mysqli_num_rows($result);
23
24                     
if($count>=1){
25                         echo
"<table border='1' align='center' cellpadding='32'>
26                             <tr>
27                                 <th>Donor ID</th>
28                                 <th>Email</th>
29                                 <th>Whom Donated</th>
30                                 
31                                 <th>Address</th>
32                                 <th>Unit</th>
33                                 <th>Date</th>
34                                 <th>Action</th>
35                             </tr>"
;
36                         
while($row=mysqli_fetch_array($result)){
37                                 echo
"<tr>";
38                                 echo
"<td>".$row['donation_id']."</td>";
39                                 echo
"<td>".$row['email']."</td>";
40                                 echo
"<td>".$row['name']."</td>";
41                                 
42                                 echo
"<td>".$row['address']."</td>";
43                                 echo
"<td>".$row['unit']."</td>";
44                                 echo
"<td>".$row['dates']."</td>";
45                                 echo
"<td><button type='submit' name='submit' style='color:#000;'>Delete</button></td>";
46                                 echo
"</tr>";
47                         }
48                         echo
"</table>";
49                     }
50                     
else{
51                         print
"<p align='center'>Sorry, No match found for your search result..!!!</p>";
52                     }
53
54                     ?>
55             </div>
56         
57     </div>
58     
59     
60
61     
62  <?php include(
'footer.php'); ?>
63
64
65     
66     </div><!-- containerFluid Ends -->
67
68
69
70
71     <script src=
"js/bootstrap.min.js"></script>
72
73
74  
75             
76
77
78
79     
80 </body>
81 </html>


Gõ tìm kiếm nhanh...